package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 附件管理对象 t_user_file
 * 
 * @author yyh
 * @date 2024-05-17
 */
public class TUserFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 人员id */
    @Excel(name = "人员id")
    private Long userId;

    /** 附件类型 */
    @Excel(name = "附件类型")
    private Long mediaType;

    /** 地址 */
    @Excel(name = "地址")
    private String mediaUrl;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMediaType(Long mediaType) 
    {
        this.mediaType = mediaType;
    }

    public Long getMediaType() 
    {
        return mediaType;
    }
    public void setMediaUrl(String mediaUrl) 
    {
        this.mediaUrl = mediaUrl;
    }

    public String getMediaUrl() 
    {
        return mediaUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("mediaType", getMediaType())
            .append("mediaUrl", getMediaUrl())
            .append("remark", getRemark())
            .toString();
    }
}
